<?=jq_form_remote_tag(array(
  "update"=>"medico_estudios",
  "url"=>"medicos/guardarEstudios",
  "loading"=>"rollLoading('medico_estudios')",

))?>
<?=input_hidden_tag("usuario_id",$usuario_id)?>
<fieldset>
  <legend>Estudios que Realiza</legend>
  <table width="100%">
  <thead>
    <tr>
      <th>Estudio</th>
      <th width="20%">Lo practica</th>
      <th width="20%">Duracion</th>
    </tr>
  </thead>
  <tbody>
  <? foreach ($estudios as $estudio) :?>
  <?
    if (isset($aEstudios[$estudio->getId()])) {
        $checked = true;
    } else {
        $checked = false;
    }
  ?>
    <tr>
      <th><?=$estudio->getNombre()?></th>
      <td><?=checkbox_tag("estudios[".$estudio->getId()."][si]",$estudio->getId(),$checked)?></td>
      <td align="center"><?=$estudio->getDuracion()?> <?=__("minutos")?></td>
    </tr>
  <? endforeach ;?>
  </tbody>
  </table>
  <? include_component("layout","botonSubmit",array("texto"=>"Guardar Estudios"));?>
</fieldset>
</form>
